Creates a #GTlsCertificate from the data in @data. It must contain
a certificate and matching private key.
If extra certificates are included they will be verified as a chain
and the #GTlsCertificate:issuer property will be set.
All other data will be ignored.
You can pass as single password for all of the data which will be
used both for the PKCS #12 container as well as encrypted
private keys. If decryption fails it will error with
%G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD.
This constructor requires support in the current #GTlsBackend.
If support is missing it will error with
%G_IO_ERROR_NOT_SUPPORTED.
Other parsing failures will error with %G_TLS_ERROR_BAD_CERTIFICATE.
Creates a #GTlsCertificate from the data in @data. It must contain a certificate and matching private key.
If extra certificates are included they will be verified as a chain and the #GTlsCertificate:issuer property will be set. All other data will be ignored.
You can pass as single password for all of the data which will be used both for the PKCS #12 container as well as encrypted private keys. If decryption fails it will error with %G_TLS_ERROR_BAD_CERTIFICATE_PASSWORD.
This constructor requires support in the current #GTlsBackend. If support is missing it will error with %G_IO_ERROR_NOT_SUPPORTED.
Other parsing failures will error with %G_TLS_ERROR_BAD_CERTIFICATE.